package com.ay277.htqoa.quartz.entity;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by Temptation on 2016/12/22.
 */
@Component
public class MyJob2 {
    @Scheduled(cron = "0,10,20,30,40,50 * * * * ?")
    public void Call(){

        System.out.println("调用时间："+new Date());
    }
}
